#include<bits/stdc++.h>
using namespace std;
using ll = long long;
ll n,m;
int main()
{
	ll n,m;
	cin >> n >> m;
	getchar();
	string s1="qiandao",s2="easy";
	string s[33];
	bool f[33]={0};
	for(ll i=1;i<=n;i++)
	{
		getline(cin,s[i]);
		if(s[i].find(s1)!=string::npos||s[i].find(s2)!=string::npos)
		{
			f[i]=1;
		}
	}
	ll cnt=0;
	for(ll i=1;i<=n;i++)
	{
		if(f[i]==1) continue;
		else {
			
			if(m!=0)
			{
				m--;
				continue;
			}
			else {
				if(m==0)
				{
					cout<<s[i]<<endl;
					return 0;
				}
			}
		}
		
	}
	
	if(m>=0)
	{
		cout<<"Wo AK le";
	}
	return 0;
}
